package com.sright.bcard.component.dal.dao.impl;

import com.sright.bcard.common.service.share.base.dao.BaseDAOImpl;
import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.component.dal.dao.ComponentCufaceMaterialConfigComponentDAO;
import com.sright.bcard.component.dal.entity.ComponentCufaceMaterialConfigComponentDO;
import com.sright.bcard.component.dal.mapper.ComponentCufaceMaterialConfigComponentDOMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
public class ComponentCufaceMaterialConfigComponentDAOImpl extends BaseDAOImpl<ComponentCufaceMaterialConfigComponentDO> implements ComponentCufaceMaterialConfigComponentDAO {

    @Resource
    private ComponentCufaceMaterialConfigComponentDOMapper componentCufaceMaterialConfigComponentDOMapper;

    @Override
    protected BaseMapper<ComponentCufaceMaterialConfigComponentDO> getObjMapper() {
        return componentCufaceMaterialConfigComponentDOMapper;
    }

    @Override
    public List<ComponentCufaceMaterialConfigComponentDO> selectByComponentIds(List<Long> componentIds) {
        return componentCufaceMaterialConfigComponentDOMapper.selectByComponentIds(componentIds);
    }
}
